package homework;

import java.io.*;

public class H6 {
    public static void main(String[] args) throws IOException {
        //OutputStreamWriter gbk = new OutputStreamWriter(new FileOutputStream("D:\\a.txt"),"GBK");
        OutputStreamWriter gbk = new OutputStreamWriter(new FileOutputStream("DAY12\\ab.txt"), "GBK");
        gbk.write("我爱Java");
        gbk.close();
    }
}
